<!-- Copyright and License Information v1
    Albatross Shell Framework
    http://AlbatrossShell.codeplex.com/
    Copyright Rushui Guan 2013-2014.  All rights reserved.
    Distributed under the terms of the Microsoft Public License (Ms-PL). 
    The license is available online http://AlbatrossShell.codeplex.com/license 
-->



<UserControl x:Class="Albatross.WPF.Common.Views.LoadingView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
	
	<Grid>
		<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
			<Grid.RowDefinitions>
				<RowDefinition/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<Image Width="66" Height="66">
				<Image.Triggers>
					<EventTrigger RoutedEvent="Image.Loaded">
						<EventTrigger.Actions>
							<BeginStoryboard>
								<Storyboard>
									<ObjectAnimationUsingKeyFrames Duration="0:0:2.4" Storyboard.TargetProperty="Source" RepeatBehavior="Forever">
										<ObjectAnimationUsingKeyFrames.KeyFrames>
											<DiscreteObjectKeyFrame KeyTime="0:0:0">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/1.png" />
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:0.2">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/2.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:0.4">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/3.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:0.6">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/4.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:0.8">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/5.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:1">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/6.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:1.2">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/7.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:1.4">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/8.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:1.6">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/9.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:1.8">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/10.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:2">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/11.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
											<DiscreteObjectKeyFrame KeyTime="0:0:2.2">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Albatross.WPF.Common;component/Images/Loading/12.png"/>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames.KeyFrames>
									</ObjectAnimationUsingKeyFrames>
								</Storyboard>
							</BeginStoryboard>
						</EventTrigger.Actions>
					</EventTrigger>
				</Image.Triggers>
			</Image>
			<TextBlock Grid.Row="1" HorizontalAlignment="Center" x:Name="LoadingText" />
		</Grid>
	</Grid>
</UserControl>
	
